{include file="public/header" /}
<style>
    .layui-form-select dl dd.layui-this {
        color: #1CC87A !important;
    }

    .layui-form-select dl dd {
        text-align: center;
    }

    .layui-form-select .layui-input {
        border: none;
        padding-left: 0 !important;
        text-align: right;
        width: 100%;

    }
    .set-list li {
        background-color: var(--cl);
        padding: 0 0.9375rem;
        display: flex;
        align-items: center;
        justify-content: space-between;
        height: 3.125rem;
        margin-bottom: 0.625rem;
    }
    .set-list li input{
        text-align: right;
    }
    #del{
        width: 24px;
        height: 24px;
        line-height: 24px;
        position: absolute;
        right: -12px;
        top: -12px;
        background: rgba(0,0,0,0.6);
        color: #fff;
        transform: rotate(45deg);
        font-size: 24px;
        border-radius: 50%;
        text-align: center;
    }
</style>
<body>
<div class="header">
    <i class="layui-icon layui-icon-left"></i> 绑定{$title}
</div>
<form action="{:url('user/method_save',['type'=>$type])}" method="post" class="form layui-form">
    <ul class="set-list">
        
        <li>
            <p>{$title}钱包地址</p>
            <input type="text" name="name" value="<?php echo $user[$type . '_name']?>" placeholder="请填写{$title}钱包地址" style="text-align: right; width: 72%;">
        </li>
        <li class="upd-label" style="height: auto;">
            <p>{$title}二维码</p>

            <p class="flex-center" style="margin: 10px;width: 70%;justify-content: right; position: relative;">
                <img id="uploads_image_sk" src="<?php echo !empty($user[$type . '_image'])?$user[$type . '_image']:'/static/index/img/addImg.png';?>" alt="" >
                <span id="del" <?php  if(empty($user[$type . '_image'])){?> style=" display:none;" <?php } ?>>+</span>
            </p>
            <input type="hidden" name="image" id="images_value" value="<?php echo $user[$type . '_image'];?>"/>
        </li>
       
    </ul>

    <p class="save save-fixed upd-save" lay-submit lay-filter="save" formObj=".form">保存</p>
</form>
</body>
{include file="public/footer"/}
</html>